<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>团队业绩</title>
<style type="text/css">
.show div{
	padding: 5px;
}
</style>
<script type="text/javascript">

	function yejistat(){
		$('#teamyeji_show').text('正在统计中,请稍等....');
		$('#w100sum,#w200sum,#w600sum,#w1000sum,#w2000sum,#w4000sum').text('0');
		$('#w100show,#w200show,#w600show,#w1000show,#w2000show,#w4000show').html('');
		var _param = $('#teamyeji_form').serialize();
		$.post('registerUser!teamYeJiStat.action',_param,function(data){
			$('#teamyeji_show').text('统计完成');
			$('#w100sum').text(data.W100.length);
			for(var i=0 ; i<data.W100.length ; i++){
				$('#w100show').append(i+1+"："+data.W100[i]+"<br>");
			}
			$('#w200sum').text(data.W200.length);
			for(var i=0 ; i<data.W200.length ; i++){
				$('#w200show').append(i+1+"："+data.W200[i]+"<br>");
			}
			$('#w600sum').text(data.W600.length);
			for(var i=0 ; i<data.W600.length ; i++){
				$('#w600show').append(i+1+"："+data.W600[i]+"<br>");
			}
			$('#w1000sum').text(data.W1000.length);
			for(var i=0 ; i<data.W1000.length ; i++){
				$('#w1000show').append(i+1+"："+data.W1000[i]+"<br>");
			}
			$('#w2000sum').text(data.W2000.length);
			for(var i=0 ; i<data.W2000.length ; i++){
				$('#w2000show').append(i+1+"："+data.W2000[i]+"<br>");
			}
			$('#w4000sum').text(data.W4000.length);
			for(var i=0 ; i<data.W4000.length ; i++){
				$('#w4000show').append(i+1+"："+data.W4000[i]+"<br>");
			}
		});
	}


</script>

</head>
<body>

<div>
	<form id="teamyeji_form">
		<table>
			<tr>
				<td>会员编号:<input name="registerUserQueryDTO.loginName" value="0000"/></td>
				<td>推荐会员:<input name="registerUserQueryDTO.recommendUser" /></td>
				<td><input type="button" value="业绩统计"  onclick="yejistat()" />
					<span style="color:red;" id="teamyeji_show"></span>
				</td>
			</tr>
		</table>
	</form>
</div>

<form id="userRechargeForm">
	<input type="hidden" name="trDTO.transactionTypes" value="查询" />
</form>

<div class="show">
<div>统计结果:</div>
<div>100W业绩会员(<span id="w100sum">0</span>)</div>
<div id="w100show"></div>
<div>200W业绩会员(<span id="w200sum">0</span>)</div>
<div id="w200show"></div>
<div>600W业绩会员(<span id="w600sum">0</span>)</div>
<div id="w600show"></div>
<div>1000W业绩会员(<span id="w1000sum">0</span>)</div>
<div id="w1000show"></div>
<div>2000W业绩会员(<span id="w2000sum">0</span>)</div>
<div id="w2000show"></div>
<div>4000W业绩会员(<span id="w4000sum">0</span>)</div>
<div id="w4000show"></div>
</div>
</body>
</html>